package com.hrt.manage.menus.service;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

import com.hrt.bean.ViewResource;

public interface ViewResourceService {

	public List<ViewResource> listManageMenuns(Integer scope);

	public Long totalCount(Integer scope);

	public List<ViewResource> queryByPage(Map<String, Object> conditions,
			int pageIndex, int pageSize);

	/**
	 * 获取前台或者后台的菜单集合
	 * @param scope
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	public List<ViewResource> queryByPage(Integer scope, int pageIndex,
			int pageSize);

	/**
	 * 分页查询
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	public List<ViewResource> queryByPage(int pageIndex, int pageSize);

	/**
	 * 获取数据库时间
	 * @return
	 */
	public Timestamp getDate();

	/**
	 * 获取一条数据
	 * @param id
	 * @return
	 */
	public ViewResource getViewResourceById(Long id);

	
	/**
	 * 更新数据
	 * @param oldVrResource
	 */
	public void updateRole(ViewResource oldVrResource);

	/**
	 * 保存
	 * @param vresource
	 * @return
	 */
	public Long saveMenun(ViewResource vresource);

	/**
	 * 删除
	 * @param idArr
	 * @return
	 */
	public void deleteById(Long[] idArr);

}
